time.Time.Add (method)

66 uses

	time (current package)
		time.go#L819: func (t Time) Add(d Duration) Time {
		time.go#L863: 	case u.Add(d).Equal(t):
		time.go#L1469: 	return t.Add(-r)
		time.go#L1487: 		return t.Add(-r)
		time.go#L1489: 	return t.Add(d - r)

	context
		context.go#L507: 	return WithDeadline(parent, time.Now().Add(timeout))

	crypto/tls
		conn.go#L1368: 		c.SetWriteDeadline(time.Now().Add(time.Second * 5))
		handshake_client_tls13.go#L672: 		useBy:              c.config.time().Add(lifetime),

	database/sql
		sql.go#L542: 	return dc.createdAt.Add(timeout).Before(nowFunc())
		sql.go#L1112: 		idleSince := nowFunc().Add(-db.maxIdleTime)
		sql.go#L1137: 		expiredSince := nowFunc().Add(-db.maxLifetime)

	github.com/aws/aws-sdk-go-v2/aws
		credential_cache.go#L222: 	creds.Expires = creds.Expires.Add(dur)

	github.com/aws/aws-sdk-go-v2/aws/retry
		middleware.go#L273: 		ttl = ttl.Add(retryMetadata.AttemptClockSkew)

	github.com/aws/smithy-go/auth/bearer
		token_cache.go#L119: 	refreshToken := cachedToken.Expired(timeNow().Add(p.options.RefreshBeforeExpires))
		token_cache.go#L144: 		if timeNow().Before(lastRefreshAttempt.Add(p.options.AsyncRefreshMinimumDelay)) {

	github.com/go-pg/pg/v10/internal/pool
		conn.go#L137: 		tm = tm.Add(timeout)

	github.com/robfig/cron/v3
		constantdelay.go#L26: 	return t.Add(schedule.Delay - time.Duration(t.Nanosecond())*time.Nanosecond)
		spec.go#L82: 	t = t.Add(1*time.Second - time.Duration(t.Nanosecond())*time.Nanosecond)
		spec.go#L127: 				t = t.Add(time.Duration(24-t.Hour()) * time.Hour)
		spec.go#L129: 				t = t.Add(time.Duration(-t.Hour()) * time.Hour)
		spec.go#L143: 		t = t.Add(1 * time.Hour)
		spec.go#L155: 		t = t.Add(1 * time.Minute)
		spec.go#L167: 		t = t.Add(1 * time.Second)

	go.pact.im/x/clock/fakeclock
		fakeclock.go#L62: 	return Time(t.Add(d))
		fakeclock.go#L115: 	c.now = c.now.Add(d)
		fakeclock.go#L193: 	return c.schedule(m, c.now.Add(d))
		fakeclock.go#L241: 		_ = c.schedule(m, now.Add(next))

	go.pact.im/x/flaky
		jitter.go#L93: 	next = next.Add(d)
		schedule.go#L80: 	next := midnight.Add(t.d)
		schedule.go#L84: 		next = next.Add(24 * time.Hour)
		schedule.go#L107: 	return now.Add(t.d)

	go.pact.im/x/zapjournal/tests
		journalctl.go#L23: 	deadline := time.Now().Add(journalctlTimeout)

	golang.org/x/net/http2
		transport.go#L466: 			sew.conn.SetWriteDeadline(time.Now().Add(sew.timeout))

	golang.org/x/net/internal/timeseries
		timeseries.go#L188: 	} else if t.After(ts.pendingTime.Add(-1 * smallBucketDuration)) {
		timeseries.go#L237: 		if !t.Before(level.end.Add(level.size * time.Duration(ts.numBuckets))) {
		timeseries.go#L245: 			level.end = level.end.Add(level.size)
		timeseries.go#L340: 	return ts.Range(now.Add(-delta), now)
		timeseries.go#L368: 		if !start.Before(l.end.Add(-l.size * time.Duration(ts.numBuckets))) {
		timeseries.go#L389: 	return ts.ComputeRange(now.Add(-delta), now, num)
		timeseries.go#L400: 	srcStart := l.end.Add(-srcInterval * time.Duration(ts.numBuckets))
		timeseries.go#L408: 		srcStart = srcStart.Add(time.Duration(advance) * srcInterval)
		timeseries.go#L418: 		dstEnd := dstStart.Add(dstInterval)
		timeseries.go#L420: 			srcEnd := srcStart.Add(srcInterval)
		timeseries.go#L452: 			srcStart = srcStart.Add(srcInterval)
		timeseries.go#L454: 		dstStart = dstStart.Add(dstInterval)

	google.golang.org/grpc
		clientconn.go#L1149: 	connectDeadline := time.Now().Add(dialDuration)
		server.go#L878: 	rawConn.SetDeadline(time.Now().Add(s.opts.connectionTimeout))

	google.golang.org/grpc/internal/transport
		http2_server.go#L895: 		if t.lastPingAt.Add(defaultPingTimeout).After(now) {
		http2_server.go#L900: 		if t.lastPingAt.Add(t.kep.MinTime).After(now) {

	net
		dial.go#L120: 		earliest = now.Add(d.Timeout)
		dial.go#L156: 	return now.Add(timeout), nil
		dnsclient_unix.go#L157: 		ctx, cancel := context.WithDeadline(ctx, time.Now().Add(timeout))
		dnsclient_unix.go#L363: 	if conf.lastChecked.After(now.Add(-5 * time.Second)) {
		hosts.go#L61: 		hosts.expire = now.Add(cacheMaxAge)
		hosts.go#L94: 	hosts.expire = now.Add(cacheMaxAge)
		interface.go#L198: 	if !force && zc.lastFetched.After(now.Add(-60*time.Second)) {

	net/http
		client.go#L190: 		return time.Now().Add(c.Timeout)
		h2_bundle.go#L7126: 			sew.conn.SetWriteDeadline(time.Now().Add(sew.timeout))
		server.go#L970: 		hdrDeadline = t0.Add(d)
		server.go#L973: 		wholeReqDeadline = t0.Add(d)
		server.go#L978: 			c.rwc.SetWriteDeadline(time.Now().Add(d))
		server.go#L1844: 			dl := time.Now().Add(tlsTO)
		server.go#L1991: 			c.rwc.SetReadDeadline(time.Now().Add(d))
		transport.go#L1029: 		oldTime = time.Now().Add(-t.IdleConnTimeout)

	testing
		testing.go#L1801: 		deadline = time.Now().Add(*timeout)
		testing.go#L2025: 	deadline := time.Now().Add(*timeout)